package com.lagou.mapper.util;

/**
 * @author srh
 * @date 2020/03/01
 **/
public class StaticUtils {

    private StaticUtils() {

    }

    private static StaticUtils INSTANCE = new StaticUtils();

    public static StaticUtils getInstance() {
        return INSTANCE;
    }

    public Object executor() {
        return "1";
    }

}

class StaticUtils2 {

    public static Object executor() {
        return "2";
    }

}

class Test {
    public static void main(String[] args) {

        Object executor1 = StaticUtils.getInstance().executor();
        Object executor2 = StaticUtils2.executor();
    }
}
